package cn.tianyun.pethome.basic.base.service;

import cn.tianyun.pethome.basic.base.query.BaseQuery;
import cn.tianyun.pethome.basic.util.PageList;
import java.util.List;

public interface BaseService<T> {
    void add(T t);
    void update(T t);

    void delete(Long id);
    T loadById(Long id);

    List<T> loadAll();

    PageList<T> queryPage(BaseQuery query);

    void batchdelete(List<Long> ids);


}
